package com.heima.client.user;

import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 *
 */
@FeignClient("leadnews-user")
public interface IUserClient {
    /**
     * 根据用户id查找用户粉丝
     *
     * @param userId,authorId
     * @return
     */
    @GetMapping("/api/v1/user/query/{userId}/{authorId}")
    ResponseResult isFan(@PathVariable Integer userId,@PathVariable Long authorId);


    @GetMapping("/api/v1/user/query/{userId}")
    ResponseResult queryUser(@PathVariable Integer userId);
}
